DESCRIPTION: First order oral absorption with a lag-time, effect compartment, and ordered categorical data

input = {Tlag, ka, V, Cl, ke0, th1, th2, th3}

EQUATION:
{Cc,Ce}= pkmodel(Tlag,ka,V,Cl,ke0)

DEFINITION:
conc = {
	type=continuous, 	
	prediction=Cc, 
	errorModel=combined1
}
level = {
	type=categorical
	categories={1,2,3}
	logit(P(level<=1)) = -th1 + th2*Ce
	logit(P(level<=2)) = -th1 + th2*Ce + th3
}

OUTPUT:
output = {conc, level}

